<style xmlns="http://www.w3.org/1999/html">
	.table-adminlog tr td {
		word-break: break-all;
	}
</style>
<table class="table table-striped table-adminlog">
	<thead>
	<tr>
		<th style="width: 12%">字段</th>
		<th >内容</th>

	</tr>
	</thead>
	<tbody>
	{volist name="row" id="vo" }

	{if(false)  }

	{else/}
	<tr>
		<td>{:__($key)}</td>
		<td>{if $key=='createtime'}
			{$vo|datetime}
			{elseif $key == 'Introduction'/}
			<div id="c-content" class="form-control" style="height:auto;width:620px;overflow-x: scroll">{$vo}</div>
			{elseif $key == 'Cover_img'/}
			<div>
				<img src="{$vo}" onclick="img(this)" width="40px" height="40px">
			</div>
			{else/}
			{$vo|htmlentities}
			{/if}
		</td>
	</tr>
	{/if}
	{/volist}
	</tbody>
</table>
<div class="hide layer-footer">
	<label class="control-label col-xs-12 col-sm-2"></label>
	<div class="col-xs-12 col-sm-8">
		<button type="reset" class="btn btn-primary btn-embossed btn-close" onclick="Layer.closeAll();">{:__('Close')}</button>
	</div>
</div>
<script type="text/javascript">
	let content=<?php echo json_encode($row); ?>;
	let dom2 = document.getElementById('c-content');
	dom2.innerHTML=  content.Introduction;
	// 预览图弹出处理
	function img(e){
		// $('img').parent('a').attr('href','javascript:;');//去掉图片oss连接地址
	// $('img').click('click',function(){
	var imgs = $(e).parents('div').children('img');
		var dataJson = [],item={};
		for (var i = 0; i < imgs.length; i++) {
			item['alt'] = '';
			item['pid'] = Math.random()*10;
			item['src'] = item['thumb'] = $(imgs[i]).attr('src');
			dataJson.push(item);
			item = {}; // 重置
		}
		var json =  {
			"title": "", //相册标题
			"id": 123, //相册id
			"start": 0, //初始显示的图片序号，默认0
			"data": dataJson
		};
		Layer.photos({
			photos: json,
			anim: 0 //0-6的选择，指定弹出图片动画类型，默认随机（请注意，3.0之前的版本用shift参数）
		});
	}
</script>
